package com.dlnu.shoping.shopping.controller;

import com.dlnu.shoping.shopping.common.Result;
import com.dlnu.shoping.shopping.service.CategoryService;
import com.dlnu.shoping.shopping.service.IAddressService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/category")
public class CategoryController {
    @Resource
    private CategoryService categoryService;
    //    有参数查询用户地址
    @RequestMapping("/search")
    public Result search(Integer category) {
        return categoryService.search(category);
    }
}
